from django.conf.urls import url

from areas import views

urlpatterns = [
   url(r'^areas/$', views.AreaView.as_view()),
   url(r'^areas/(?P<pk>\d+)/$', views.AreaSecondView.as_view()),
# as_view中的获得字典形式　{pk:120000}

]